<template>
	<view>
		<view class="content">
			<web-view :src="src" style="padding-top: 62px;box-sizing: border-box;"></web-view>
			<!-- <web-view :fullscreen="false" :src="src" style="width:100vw;height: 100vh;"></web-view> -->
		</view>
	</view>
</template>

<script>
	import {
		userWallet
	} from '@/request/api.js';
	export default {
		data() {
			return {
				src: "",
				styles: {
					width: '750px',
					height: '750px',
				}
			}
		},
		async onLoad() {
			await userWallet({}, {
				custom: {
					catch: true,
					toast: false
				}
			}).then(res => {
				this.src = res.wallet.url;
			}).catch(err => {
				let msg = err.message;
				this.$u.toast(msg);
				setTimeout(() => {
					this.redirectRouter(3);
				}, 1500);
			});
		}
	}
</script>

<style scoped lang="scss">
	.content {
		width: 100vw;
		min-height: calc(100vh - #{$navbarHeight});
		// overflow: hidden;
	}
</style>